package dao

import (
	"fmt"
	_ "github.com/go-sql-driver/mysql"
	"github.com/jinzhu/gorm"
)

var (
	Db *gorm.DB
)

func Init() {
	db, err := gorm.Open("mysql", "root:123456@(localhost:3306)/software?charset=utf8&parseTime=True&loc=Local")
	if err != nil {
		fmt.Printf("err: %v\n", err)
	}
	Db = db

}
